package com.wuye.model.customer;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by zhanchi on 2016/6/29.
 */
@Entity
@Table(name="wuye_optionDetail")
public class OptionDetail implements Serializable{
    public String toString() {
        try {
            return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
        } catch (Exception e) {
            return e.getMessage();
        }
    }
    @Id
    @Column(name="wuye_optionDetail_id")
    private Integer detailId;
    @Column(name="wuye_optionDetail_name")
    private String detailName;
    @Column(name="wuye_optionDetail_parentId")
    private Integer detailParentId;
    @Column(name="wuye_optionDetail_parentName")
    private String detailParentName;
    @Column(name="wuye_optionDetail_pollId")
    private Integer detailPollId;
    @Column(name="wuye_optionDetail_opName1")
    private String detailOpName1;
    @Column(name="wuye_optionDetail_opName2")
    private String detailOpName2;
    @Column(name="wuye_optionDetail_opName3")
    private String detailOpName3;
    @Column(name="wuye_optionDetail_opName4")
    private String detailOpName4;
    @Column(name="wuye_optionDetail_opName5")
    private String detailOpName5;
    @Column(name="wuye_optionDetail_opName6")
    private String detailOpName6;
    @Column(name="wuye_optionDetail_opName7")
    private String detailOpName7;
    @Column(name="wuye_optionDetail_opName8")
    private String detailOpName8;

    public OptionDetail(Integer detailId, String detailName, Integer detailParentId, String detailParentName, Integer detailPollId, String detailOpName1, String detailOpName2, String detailOpName3, String detailOpName4, String detailOpName5, String detailOpName6, String detailOpName7, String detailOpName8) {
        this.detailId = detailId;
        this.detailName = detailName;
        this.detailParentId = detailParentId;
        this.detailParentName = detailParentName;
        this.detailPollId = detailPollId;
        this.detailOpName1 = detailOpName1;
        this.detailOpName2 = detailOpName2;
        this.detailOpName3 = detailOpName3;
        this.detailOpName4 = detailOpName4;
        this.detailOpName5 = detailOpName5;
        this.detailOpName6 = detailOpName6;
        this.detailOpName7 = detailOpName7;
        this.detailOpName8 = detailOpName8;
    }

    public OptionDetail() {
    }

    public int getDetailId() {
        return detailId;
    }

    public void setDetailId(int detailId) {
        this.detailId = detailId;
    }

    public String getDetailName() {
        return detailName;
    }

    public void setDetailName(String detailName) {
        this.detailName = detailName;
    }

    public int getDetailParentId() {
        return detailParentId;
    }

    public void setDetailParentId(int detailParentId) {
        this.detailParentId = detailParentId;
    }

    public String getDetailParentName() {
        return detailParentName;
    }

    public void setDetailParentName(String detailParentName) {
        this.detailParentName = detailParentName;
    }

    public int getDetailPollId() {
        return detailPollId;
    }

    public void setDetailPollId(int detailPollId) {
        this.detailPollId = detailPollId;
    }

    public String getDetailOpName1() {
        return detailOpName1;
    }

    public void setDetailOpName1(String detailOpName1) {
        this.detailOpName1 = detailOpName1;
    }

    public String getDetailOpName2() {
        return detailOpName2;
    }

    public void setDetailOpName2(String detailOpName2) {
        this.detailOpName2 = detailOpName2;
    }

    public String getDetailOpName3() {
        return detailOpName3;
    }

    public void setDetailOpName3(String detailOpName3) {
        this.detailOpName3 = detailOpName3;
    }

    public String getDetailOpName4() {
        return detailOpName4;
    }

    public void setDetailOpName4(String detailOpName4) {
        this.detailOpName4 = detailOpName4;
    }

    public String getDetailOpName5() {
        return detailOpName5;
    }

    public void setDetailOpName5(String detailOpName5) {
        this.detailOpName5 = detailOpName5;
    }

    public String getDetailOpName6() {
        return detailOpName6;
    }

    public void setDetailOpName6(String detailOpName6) {
        this.detailOpName6 = detailOpName6;
    }

    public String getDetailOpName7() {
        return detailOpName7;
    }

    public void setDetailOpName7(String detailOpName7) {
        this.detailOpName7 = detailOpName7;
    }

    public String getDetailOpName8() {
        return detailOpName8;
    }

    public void setDetailOpName8(String detailOpName8) {
        this.detailOpName8 = detailOpName8;
    }
}
